package main

import (
	"fmt"
	"time"
)

func main() {

	now := time.Now()

	fmt.Println(now)

	// 输出指定格式

	fmt.Println(now.Format("2006-01-01 15:04:05"))

	fmt.Printf(now.Format("2006-01-02 15:04:05"))
	fmt.Printf("The number is: %x\n", 255)

	s := "good bye"
	var p *string = &s
	*p = "ciao"
	fmt.Printf("Here is the pointer p: %p\n", p)  // prints address
	fmt.Printf("Here is the string *p: %s\n", *p) // prints string
	fmt.Printf("Here is the string s: %s\n", s)   // prints same string
}
